import state from '../store/index'
import Vue from "vue";
import axios from "axios";

export default {
  indexMapper: {
    "article": "学术文章"
  },
  searchArticle(name) {

  },
  searchCitationById(id) {

  },

  generateDetailQuery(str) {
    return {
      "queryString": str.replace("<span class='highlight'>", "").replace("</span>", ""),
      "page": 1,
      "pageSize": 10,
      "sort": "relevance",
      "authors": [],
      "coAuthors": [],
      "venues": [],
      "yearFilter": null,
      "requireViewablePdf": false,
      "publicationTypes": [],
      "externalContentTypes": [],
      "fieldsOfStudy": [],
      "useFallbackRankerService": false,
      "useFallbackSearchCluster": false,
      "hydrateWithDdb": true,
      "includeTldrs": true,
      "performTitleMatch": true,
      "includeBadges": true,
      "tldrModelVersion": "v2.0.0",
      "getQuerySuggestions": false
    }
  },

  citationParam: {
    "page": 1,
    "pageSize": 10000,
    "sort": "relevance",
    "authors": [],
    "coAuthors": [],
    "venues": [],
    "yearFilter": null,
    "requireViewablePdf": false,
    "publicationTypes": [],
    "externalContentTypes": [],
    "fieldsOfStudy": []
  },
}
